<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>协程堆栈</title>
</head>
<body>
<pre id="prelog"></pre>
<script></script>
<script type="text/javascript" src="../../js/layer/layui.js"></script>
<script>
    ready(function() {
        layui.use(['zhanshop'], function(){
            var menuId = 'Coroutinelist';//parent.layui.zhanshop.getParam('_id');
            var id = layui.zhanshop.getParam('id');
            var submitData = {"id": id};
            submitData['_method'] = 'trace';
            layui.zhanshop.ajax(API_ADDRESS+apiUrlTable+'/'+menuId, 'POST', submitData, {}, function(res){
                $("#prelog").append(JSON.stringify(res.data.body, null, 4));
                window.scrollTo(0, document.body.scrollHeight);
            },function(xhr){
                return zhanshop.alert(xhr.responseJSON[apiMsg] ? xhr.responseJSON[apiMsg] : xhr.statusText, 'danger');
            }, false, apiFromJson);

        });

    });
</script>
</body>
</html>
